<!doctype html>
<html lang="en" dir="ltr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="generator" content="Docusaurus v2.0.0-alpha.72">
<link rel="alternate" type="application/rss+xml" href="/zh-cn.neutralinojs.github.io/blog/rss.xml" title="Neutralinojs Blog RSS Feed">
<link rel="alternate" type="application/atom+xml" href="/zh-cn.neutralinojs.github.io/blog/atom.xml" title="Neutralinojs Blog Atom Feed">
<link rel="preconnect" href="https://www.google-analytics.com">
<link rel="preconnect" href="https://www.googletagmanager.com">
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-120983955-1"></script>
<script>function gtag(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],gtag("js",new Date),gtag("config","UA-120983955-1",{anonymize_ip:!0})</script>
<script src="https://media.ethicalads.io/media/client/ethicalads.min.js"></script>
<script src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js" async></script><title data-react-helmet="true">客户端 | Neutralinojs</title><meta data-react-helmet="true" property="og:url" content="https://wll8.gitee.io/zh-cn.neutralinojs.github.io/zh-cn.neutralinojs.github.io/docs/release-notes/client-library"><meta data-react-helmet="true" name="docusaurus_locale" content="en"><meta data-react-helmet="true" name="docusaurus_version" content="current"><meta data-react-helmet="true" name="docusaurus_tag" content="docs-default-current"><meta data-react-helmet="true" property="og:title" content="客户端 | Neutralinojs"><meta data-react-helmet="true" name="description" content="Unreleased"><meta data-react-helmet="true" property="og:description" content="Unreleased"><link data-react-helmet="true" rel="shortcut icon" href="/zh-cn.neutralinojs.github.io/img/favicon.png"><link data-react-helmet="true" rel="canonical" href="https://wll8.gitee.io/zh-cn.neutralinojs.github.io/zh-cn.neutralinojs.github.io/docs/release-notes/client-library"><link data-react-helmet="true" rel="alternate" href="https://wll8.gitee.io/zh-cn.neutralinojs.github.io/zh-cn.neutralinojs.github.io/docs/release-notes/client-library" hreflang="en"><link data-react-helmet="true" rel="alternate" href="https://wll8.gitee.io/zh-cn.neutralinojs.github.io/zh-cn.neutralinojs.github.io/docs/release-notes/client-library" hreflang="x-default"><link rel="stylesheet" href="/zh-cn.neutralinojs.github.io/assets/css/styles.b7ecac1c.css">
<link rel="preload" href="/zh-cn.neutralinojs.github.io/assets/js/styles.c25d7c9f.js" as="script">
<link rel="preload" href="/zh-cn.neutralinojs.github.io/assets/js/runtime~main.da1bdab8.js" as="script">
<link rel="preload" href="/zh-cn.neutralinojs.github.io/assets/js/main.22927eab.js" as="script">
<link rel="preload" href="/zh-cn.neutralinojs.github.io/assets/js/1.a80d899d.js" as="script">
<link rel="preload" href="/zh-cn.neutralinojs.github.io/assets/js/2.818fc9a7.js" as="script">
<link rel="preload" href="/zh-cn.neutralinojs.github.io/assets/js/49.8e895b96.js" as="script">
<link rel="preload" href="/zh-cn.neutralinojs.github.io/assets/js/50.816652b0.js" as="script">
<link rel="preload" href="/zh-cn.neutralinojs.github.io/assets/js/935f2afb.a67ede05.js" as="script">
<link rel="preload" href="/zh-cn.neutralinojs.github.io/assets/js/17896441.74f92a0c.js" as="script">
<link rel="preload" href="/zh-cn.neutralinojs.github.io/assets/js/7a386ae8.b1f43bbb.js" as="script">
</head>
<body>
<script>!function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){var t=null;try{t=localStorage.getItem("theme")}catch(t){}return t}();t(null!==e?e:"light")}()</script><div id="__docusaurus">
<div><a href="#main" class="skipToContent_1oUP">Skip to main content</a></div><nav class="navbar navbar--fixed-top"><div class="navbar__inner"><div class="navbar__items"><button aria-label="Navigation bar toggle" class="navbar__toggle" type="button" tabindex="0"><svg aria-label="Menu" width="30" height="30" viewBox="0 0 30 30" role="img" focusable="false"><title>Menu</title><path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2" d="M4 7h22M4 15h22M4 23h22"></path></svg></button><a class="navbar__brand" href="/zh-cn.neutralinojs.github.io/"><img src="/zh-cn.neutralinojs.github.io/img/logo.png" alt="Neutralinojs Logo" class="themedImage_1VuW themedImage--light_3UqQ navbar__logo"><img src="/zh-cn.neutralinojs.github.io/img/logo.png" alt="Neutralinojs Logo" class="themedImage_1VuW themedImage--dark_hz6m navbar__logo"><strong class="navbar__title">Neutralinojs</strong></a><a aria-current="page" class="navbar__item navbar__link navbar__link--active" href="/zh-cn.neutralinojs.github.io/docs/">文档</a><a class="navbar__item navbar__link" href="/zh-cn.neutralinojs.github.io/apps/">应用</a><a class="navbar__item navbar__link" href="/zh-cn.neutralinojs.github.io/resources/">资源</a><a href="https://www.youtube.com/c/CodeZri" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link">视频</a><a href="https://codezri.org/blog/neutralinojs-2024-roadmap" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link">路线图</a><a class="navbar__item navbar__link" href="/zh-cn.neutralinojs.github.io/docs/release-notes/framework">发布说明</a><a href="https://github.com/neutralinojs/gsoc2024" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link">GSoC 2024</a></div><div class="navbar__items navbar__items--right"><a href="https://github.com/neutralinojs" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link">GitHub</a><a href="https://www.patreon.com/shalithasuranga" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link">❤️ 捐赠</a><div class="react-toggle react-toggle--disabled displayOnlyInLargeViewport_GrZ2"><div class="react-toggle-track"><div class="react-toggle-track-check"><span class="toggle_71bT">🌜</span></div><div class="react-toggle-track-x"><span class="toggle_71bT">🌞</span></div></div><div class="react-toggle-thumb"></div><input type="checkbox" disabled="" aria-label="Dark mode toggle" class="react-toggle-screenreader-only"></div></div></div><div role="presentation" class="navbar-sidebar__backdrop"></div><div class="navbar-sidebar"><div class="navbar-sidebar__brand"><a class="navbar__brand" href="/zh-cn.neutralinojs.github.io/"><img src="/zh-cn.neutralinojs.github.io/img/logo.png" alt="Neutralinojs Logo" class="themedImage_1VuW themedImage--light_3UqQ navbar__logo"><img src="/zh-cn.neutralinojs.github.io/img/logo.png" alt="Neutralinojs Logo" class="themedImage_1VuW themedImage--dark_hz6m navbar__logo"><strong class="navbar__title">Neutralinojs</strong></a></div><div class="navbar-sidebar__items"><div class="menu"><ul class="menu__list"><li class="menu__list-item"><a aria-current="page" class="menu__link navbar__link--active" href="/zh-cn.neutralinojs.github.io/docs/">文档</a></li><li class="menu__list-item"><a class="menu__link" href="/zh-cn.neutralinojs.github.io/apps/">应用</a></li><li class="menu__list-item"><a class="menu__link" href="/zh-cn.neutralinojs.github.io/resources/">资源</a></li><li class="menu__list-item"><a href="https://www.youtube.com/c/CodeZri" target="_blank" rel="noopener noreferrer" class="menu__link">视频</a></li><li class="menu__list-item"><a href="https://codezri.org/blog/neutralinojs-2024-roadmap" target="_blank" rel="noopener noreferrer" class="menu__link">路线图</a></li><li class="menu__list-item"><a class="menu__link" href="/zh-cn.neutralinojs.github.io/docs/release-notes/framework">发布说明</a></li><li class="menu__list-item"><a href="https://github.com/neutralinojs/gsoc2024" target="_blank" rel="noopener noreferrer" class="menu__link">GSoC 2024</a></li><li class="menu__list-item"><a href="https://github.com/neutralinojs" target="_blank" rel="noopener noreferrer" class="menu__link">GitHub</a></li><li class="menu__list-item"><a href="https://www.patreon.com/shalithasuranga" target="_blank" rel="noopener noreferrer" class="menu__link">❤️ 捐赠</a></li></ul></div></div></div></nav><div class="main-wrapper main-docs-wrapper"><div class="docPage_31aa"><div class="docSidebarContainer_3Kbt" role="complementary"><div class="sidebar_15mo"><div class="menu menu--responsive thin-scrollbar menu_Bmed"><button aria-label="Open menu" aria-haspopup="true" class="button button--secondary button--sm menu__button" type="button"><svg aria-label="Menu" class="sidebarMenuIcon_fgN0" width="24" height="24" viewBox="0 0 30 30" role="img" focusable="false"><title>Menu</title><path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2" d="M4 7h22M4 15h22M4 23h22"></path></svg></button><ul class="menu__list"><li class="menu__list-item menu__list-item--collapsed"><a class="menu__link menu__link--sublist" href="#!">入门指南</a><ul class="menu__list"><li class="menu__list-item"><a class="menu__link" tabindex="-1" href="/zh-cn.neutralinojs.github.io/docs/">简介</a></li><li class="menu__list-item"><a class="menu__link" tabindex="-1" href="/zh-cn.neutralinojs.github.io/docs/getting-started/your-first-neutralinojs-app">您的第一个Neutralinojs应用</a></li><li class="menu__list-item"><a class="menu__link" tabindex="-1" href="/zh-cn.neutralinojs.github.io/docs/getting-started/using-frontend-libraries">使用前端库</a></li></ul></li><li class="menu__list-item menu__list-item--collapsed"><a class="menu__link menu__link--sublist" href="#!">原生 API</a><ul class="menu__list"><li class="menu__list-item"><a class="menu__link" tabindex="-1" href="/zh-cn.neutralinojs.github.io/docs/api/overview">原生API概览</a></li><li class="menu__list-item"><a class="menu__link" tabindex="-1" href="/zh-cn.neutralinojs.github.io/docs/api/app">Neutralino.app</a></li><li class="menu__list-item"><a class="menu__link" tabindex="-1" href="/zh-cn.neutralinojs.github.io/docs/api/clipboard">Neutralino.clipboard</a></li><li class="menu__list-item"><a class="menu__link" tabindex="-1" href="/zh-cn.neutralinojs.github.io/docs/api/computer">Neutralino.computer</a></li><li class="menu__list-item"><a class="menu__link" tabindex="-1" href="/zh-cn.neutralinojs.github.io/docs/api/custom">Neutralino.custom</a></li><li class="menu__list-item"><a class="menu__link" tabindex="-1" href="/zh-cn.neutralinojs.github.io/docs/api/debug">Neutralino.debug</a></li><li class="menu__list-item"><a class="menu__link" tabindex="-1" href="/zh-cn.neutralinojs.github.io/docs/api/events">Neutralino.events</a></li><li class="menu__list-item"><a class="menu__link" tabindex="-1" href="/zh-cn.neutralinojs.github.io/docs/api/extensions">Neutralino.extensions</a></li><li class="menu__list-item"><a class="menu__link" tabindex="-1" href="/zh-cn.neutralinojs.github.io/docs/api/filesystem">Neutralino.filesystem</a></li><li class="menu__list-item"><a class="menu__link" tabindex="-1" href="/zh-cn.neutralinojs.github.io/docs/api/init">Neutralino.init</a></li><li class="menu__list-item"><a class="menu__link" tabindex="-1" href="/zh-cn.neutralinojs.github.io/docs/api/os">Neutralino.os</a></li><li class="menu__list-item"><a class="menu__link" tabindex="-1" href="/zh-cn.neutralinojs.github.io/docs/api/storage">Neutralino.storage</a></li><li class="menu__list-item"><a class="menu__link" tabindex="-1" href="/zh-cn.neutralinojs.github.io/docs/api/updater">Neutralino.updater</a></li><li class="menu__list-item"><a class="menu__link" tabindex="-1" href="/zh-cn.neutralinojs.github.io/docs/api/window">Neutralino.window</a></li><li class="menu__list-item"><a class="menu__link" tabindex="-1" href="/zh-cn.neutralinojs.github.io/docs/api/error-codes">错误码</a></li><li class="menu__list-item"><a class="menu__link" tabindex="-1" href="/zh-cn.neutralinojs.github.io/docs/api/global-variables">全局变量</a></li></ul></li><li class="menu__list-item menu__list-item--collapsed"><a class="menu__link menu__link--sublist" href="#!">CLI</a><ul class="menu__list"><li class="menu__list-item"><a class="menu__link" tabindex="-1" href="/zh-cn.neutralinojs.github.io/docs/cli/neu-cli">neu CLI</a></li><li class="menu__list-item"><a class="menu__link" tabindex="-1" href="/zh-cn.neutralinojs.github.io/docs/cli/internal-cli-arguments">Internal 命令行参数</a></li></ul></li><li class="menu__list-item menu__list-item--collapsed"><a class="menu__link menu__link--sublist" href="#!">配置</a><ul class="menu__list"><li class="menu__list-item"><a class="menu__link" tabindex="-1" href="/zh-cn.neutralinojs.github.io/docs/configuration/neutralino.config.json">neutralino.config.json</a></li><li class="menu__list-item"><a class="menu__link" tabindex="-1" href="/zh-cn.neutralinojs.github.io/docs/configuration/project-structure">项目结构</a></li><li class="menu__list-item"><a class="menu__link" tabindex="-1" href="/zh-cn.neutralinojs.github.io/docs/configuration/modes">模式</a></li></ul></li><li class="menu__list-item menu__list-item--collapsed"><a class="menu__link menu__link--sublist" href="#!">如何操作</a><ul class="menu__list"><li class="menu__list-item"><a class="menu__link" tabindex="-1" href="/zh-cn.neutralinojs.github.io/docs/how-to/extensions-overview">扩展概述</a></li><li class="menu__list-item"><a class="menu__link" tabindex="-1" href="/zh-cn.neutralinojs.github.io/docs/how-to/auto-updater">自动更新器</a></li></ul></li><li class="menu__list-item menu__list-item--collapsed"><a class="menu__link menu__link--sublist" href="#!">分发</a><ul class="menu__list"><li class="menu__list-item"><a class="menu__link" tabindex="-1" href="/zh-cn.neutralinojs.github.io/docs/distribution/overview">分发概述</a></li></ul></li><li class="menu__list-item menu__list-item--collapsed"><a class="menu__link menu__link--sublist" href="#!">贡献</a><ul class="menu__list"><li class="menu__list-item"><a class="menu__link" tabindex="-1" href="/zh-cn.neutralinojs.github.io/docs/contributing/framework-developer-guide">框架开发指南</a></li><li class="menu__list-item"><a class="menu__link" tabindex="-1" href="/zh-cn.neutralinojs.github.io/docs/contributing/architecture">架构</a></li><li class="menu__list-item"><a class="menu__link" tabindex="-1" href="/zh-cn.neutralinojs.github.io/docs/contributing/security">安全性</a></li><li class="menu__list-item"><a class="menu__link" tabindex="-1" href="/zh-cn.neutralinojs.github.io/docs/contributing/code-style-guide">代码风格指南</a></li><li class="menu__list-item"><a class="menu__link" tabindex="-1" href="/zh-cn.neutralinojs.github.io/docs/contributing/developer-support">开发者支持</a></li><li class="menu__list-item"><a class="menu__link" tabindex="-1" href="/zh-cn.neutralinojs.github.io/docs/contributing/committers">提交者</a></li><li class="menu__list-item"><a class="menu__link" tabindex="-1" href="/zh-cn.neutralinojs.github.io/docs/contributing/frequently-asked-questions">常见问题解答</a></li><li class="menu__list-item"><a class="menu__link" tabindex="-1" href="/zh-cn.neutralinojs.github.io/docs/contributing/about-neutralinojs">关于 Neutralinojs</a></li></ul></li><li class="menu__list-item"><a class="menu__link menu__link--sublist menu__link--active" href="#!">发布说明</a><ul class="menu__list"><li class="menu__list-item"><a class="menu__link" tabindex="0" href="/zh-cn.neutralinojs.github.io/docs/release-notes/framework">框架</a></li><li class="menu__list-item"><a class="menu__link" tabindex="0" href="/zh-cn.neutralinojs.github.io/docs/release-notes/cli">命令行</a></li><li class="menu__list-item"><a aria-current="page" class="menu__link menu__link--active active" tabindex="0" href="/zh-cn.neutralinojs.github.io/docs/release-notes/client-library">客户端</a></li></ul></li></ul></div></div></div><main class="docMainContainer_3ufF"><div class="container padding-vert--lg docItemWrapper_3FMP"><div class="row"><div class="col docItemCol_2rXS"><div class="docItemContainer_1EXp"><article><header><h1 class="docTitle_1vX4">客户端</h1></header><div class="markdown"><h2><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="unreleased"></a>Unreleased<a class="hash-link" href="#unreleased" title="Direct link to heading">#</a></h2><h2><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="v1100"></a>v11.0.0<a class="hash-link" href="#v1100" title="Direct link to heading">#</a></h2><h3><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="core-runner"></a>Core: Runner<a class="hash-link" href="#core-runner" title="Direct link to heading">#</a></h3><ul><li>根据v5框架API更改WebSocket连接。</li></ul><h3><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="bugfixesimprovements"></a>Bugfixes/improvements<a class="hash-link" href="#bugfixesimprovements" title="Direct link to heading">#</a></h3><ul><li>修复了前端库命令执行中的问题。</li></ul><h2><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="v1011"></a>v10.1.1<a class="hash-link" href="#v1011" title="Direct link to heading">#</a></h2><h3><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="bugfixesimprovements-1"></a>Bugfixes/improvements<a class="hash-link" href="#bugfixesimprovements-1" title="Direct link to heading">#</a></h3><ul><li>修复了与Vite服务器一起进行应用开发时的问题。</li></ul><h2><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="v1010"></a>v10.1.0<a class="hash-link" href="#v1010" title="Direct link to heading">#</a></h2><h3><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="bugfixesimprovements-2"></a>Bugfixes/improvements<a class="hash-link" href="#bugfixesimprovements-2" title="Direct link to heading">#</a></h3><ul><li>修复了基于前端库开发流程中的几个问题（例如，移除了硬编码的端口号，修复了<code>devCommand</code>执行两次等问题）。</li></ul><h2><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="v1000"></a>v10.0.0<a class="hash-link" href="#v1000" title="Direct link to heading">#</a></h2><h3><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="core-frontend-library-based-development"></a>Core: frontend-library-based development<a class="hash-link" href="#core-frontend-library-based-development" title="Direct link to heading">#</a></h3><p>在<code>neutralino.config.json</code>的<code>cli.frontendLibrary</code>键中添加了新的配置选项：</p><ul><li><code>projectPath</code>：设置前端库项目的项目路径。执行与前端应用相关的命令时，将使用此路径作为当前目录。</li><li><code>initCommand</code>：使用<code>neu create</code>命令下载应用模板后执行的命令。</li><li><code>devCommand</code>：此命令将与<code>neu run</code>命令一起运行，以启动前端开发服务器。CLI不会等待<code>devCommand</code>完成，而是将通过<a href="https://www.npmjs.com/package/tcp-port-used" target="_blank" rel="noopener noreferrer"><code>tcp-port-used</code></a>包等待前端开发服务器。</li><li><code>buildCommand</code>：在生成应用程序包之前，<code>neu build</code>命令将执行此命令，因此您可以使用此命令生成前端应用的静态资源。</li></ul><h2><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="v980"></a>v9.8.0<a class="hash-link" href="#v980" title="Direct link to heading">#</a></h2><h3><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="core-downloader"></a>Core: Downloader<a class="hash-link" href="#core-downloader" title="Direct link to heading">#</a></h3><ul><li>在<code>neu update</code>命令中使用<code>--latest</code>选项下载最新的Neutralinojs框架资源。</li><li>如果应用/模板配置中没有框架版本，自动下载最新的框架资源。如果由于GitHub API相关问题（例如，超出速率限制）无法获取最新发布标签，CLI将下载夜间发布版本。</li></ul><h2><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="v970"></a>v9.7.0<a class="hash-link" href="#v970" title="Direct link to heading">#</a></h2><h3><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="core-downloaderbundler"></a>Core: Downloader/bundler<a class="hash-link" href="#core-downloaderbundler" title="Direct link to heading">#</a></h3><ul><li>下载TypeScript定义文件以用于独立客户端库模式。这不会将TypeScript定义文件包含到最终的应用程序包中。</li></ul><h2><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="v961"></a>v9.6.1<a class="hash-link" href="#v961" title="Direct link to heading">#</a></h2><h3><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="bugfixesimprovements-3"></a>Bugfixes/Improvements<a class="hash-link" href="#bugfixesimprovements-3" title="Direct link to heading">#</a></h3><ul><li>修复了在新版Node运行时版本中出现的热重载问题。</li></ul><h2><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="v960"></a>v9.6.0<a class="hash-link" href="#v960" title="Direct link to heading">#</a></h2><h3><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="core-bundler"></a>Core: Bundler<a class="hash-link" href="#core-bundler" title="Direct link to heading">#</a></h3><ul><li>避免将<code>WebView2Loader.dll</code>文件复制到最终应用程序包中，因为它已从Neutralinojs框架中移除。</li></ul><h2><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="v951"></a>v9.5.1<a class="hash-link" href="#v951" title="Direct link to heading">#</a></h2><h3><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="bugfixesimprovements-4"></a>Bugfixes/Improvements<a class="hash-link" href="#bugfixesimprovements-4" title="Direct link to heading">#</a></h3><ul><li>使用<code>decompress</code>库代替<code>unzipper</code>来修复最新Node.js运行时版本中的问题。</li><li>使用<code>neu build</code>命令生成Mac通用二进制文件。</li></ul><h2><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="v950"></a>v9.5.0<a class="hash-link" href="#v950" title="Direct link to heading">#</a></h2><h3><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="devops"></a>DevOps<a class="hash-link" href="#devops" title="Direct link to heading">#</a></h3><ul><li>实现一种本地测试插件的方法。</li></ul><h2><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="v940"></a>v9.4.0<a class="hash-link" href="#v940" title="Direct link to heading">#</a></h2><h3><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="devops-new-test-suite"></a>DevOps: new test suite<a class="hash-link" href="#devops-new-test-suite" title="Direct link to heading">#</a></h3><ul><li>启动一个基于Node.js的新测试套件。</li></ul><h3><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="bugfixesimprovements-5"></a>Bugfixes/Improvements<a class="hash-link" href="#bugfixesimprovements-5" title="Direct link to heading">#</a></h3><ul><li>如果<code>neu create</code>命令不成功，清理项目文件。</li><li>如果由于缺少<code>.storage</code>目录而导致<code>neu build --copy-storage</code>失败，显示错误消息。</li><li>支持Darwin <code>arm64</code>二进制文件的原生支持，无需二进制转换（<code>x64</code> -&gt; <code>arm64</code>）。</li><li>使下载客户端库的过程可选，并支持通过<code>@neutralinojs/lib</code>导入客户端库。</li><li>根据应用配置下载客户端库的模块版本。</li></ul><h2><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="v931"></a>v9.3.1<a class="hash-link" href="#v931" title="Direct link to heading">#</a></h2><h3><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="core-plugins"></a>Core: Plugins<a class="hash-link" href="#core-plugins" title="Direct link to heading">#</a></h3><ul><li>当通过包管理器升级/降级neu CLI版本时，自动重新安装插件。</li></ul><h3><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="core-downloaderbuilder"></a>Core: downloader/builder<a class="hash-link" href="#core-downloaderbuilder" title="Direct link to heading">#</a></h3><ul><li>支持ARM (armhf/arm64)二进制文件。</li></ul><h2><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="v930"></a>v9.3.0<a class="hash-link" href="#v930" title="Direct link to heading">#</a></h2><h3><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="general"></a>General<a class="hash-link" href="#general" title="Direct link to heading">#</a></h3><ul><li>为每个命令添加简短描述。</li><li>支持下载夜间构建版本。</li></ul><h3><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="bugfixesimprovements-6"></a>Bugfixes/improvements<a class="hash-link" href="#bugfixesimprovements-6" title="Direct link to heading">#</a></h3><ul><li>修复插件列表问题。</li></ul><h3><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="devops-1"></a>DevOps<a class="hash-link" href="#devops-1" title="Direct link to heading">#</a></h3><ul><li>添加一个简单的测试套件，用于使用Bash脚本测试CLI命令。</li></ul><h2><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="v920"></a>v9.2.0<a class="hash-link" href="#v920" title="Direct link to heading">#</a></h2><h3><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="general-1"></a>General<a class="hash-link" href="#general-1" title="Direct link to heading">#</a></h3><ul><li>改进日志消息和样式</li></ul><h3><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="core-runner-1"></a>Core: Runner<a class="hash-link" href="#core-runner-1" title="Direct link to heading">#</a></h3><ul><li>直接在控制台上显示Neutralinojs进程的STDIN和STDERR流。</li><li>从<code>run</code>命令中移除<code>--verbose</code>选项。</li></ul><h2><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="v912"></a>v9.1.2<a class="hash-link" href="#v912" title="Direct link to heading">#</a></h2><h3><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="core-runner-2"></a>Core: Runner<a class="hash-link" href="#core-runner-2" title="Direct link to heading">#</a></h3><ul><li>修复Windows上热重载解决方案中的客户端库路径问题。</li></ul><h2><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="v911"></a>v9.1.1<a class="hash-link" href="#v911" title="Direct link to heading">#</a></h2><h3><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="bugfixes"></a>Bugfixes<a class="hash-link" href="#bugfixes" title="Direct link to heading">#</a></h3><ul><li>修复了<code>neu run</code>下的浏览器模式退出问题。</li></ul><h2><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="v910"></a>v9.1.0<a class="hash-link" href="#v910" title="Direct link to heading">#</a></h2><h3><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="core-runner-3"></a>Core: Runner<a class="hash-link" href="#core-runner-3" title="Direct link to heading">#</a></h3><ul><li>添加了一个解决方案，以便使用应用开发者现有的前端库/框架进行热模块重载。</li></ul><h2><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="v900"></a>v9.0.0<a class="hash-link" href="#v900" title="Direct link to heading">#</a></h2><h3><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="core-creator"></a>Core: Creator<a class="hash-link" href="#core-creator" title="Direct link to heading">#</a></h3><ul><li>允许通过<code>neu create myapp --template &lt;template&gt;</code>下载任何社区模板。<code>&lt;template&gt;</code>接受有效的GitHub仓库标识符。默认值是<code>neutralinojs/neutralinojs-minimal</code>。</li></ul><h3><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="core-runner-4"></a>Core: Runner<a class="hash-link" href="#core-runner-4" title="Direct link to heading">#</a></h3><ul><li>添加<code>--verbose</code>选项以识别框架初始化崩溃。一旦进程终止，它将显示框架的STDERR和STDOUT。</li><li>支持通过<code>neu run -- &lt;additional_args&gt;</code>将任何内部CLI参数发送到Neutralinojs进程。</li><li>从<code>run</code>中移除<code>--mode=&lt;mode&gt;</code>选项，因为同样的工作可以用<code>neu run -- --mode=&lt;mode&gt;</code>完成。</li></ul><h3><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="bugfixes-and-improvements"></a>Bugfixes and improvements<a class="hash-link" href="#bugfixes-and-improvements" title="Direct link to heading">#</a></h3><ul><li>修复了<code>neu run</code>命令中的无限重试问题。</li><li>显示下载失败的错误消息。</li></ul><h2><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="v810"></a>v8.1.0<a class="hash-link" href="#v810" title="Direct link to heading">#</a></h2><h3><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="core-file-watcher"></a>Core: File watcher<a class="hash-link" href="#core-file-watcher" title="Direct link to heading">#</a></h3><ul><li>通过<code>cli.autoReloadExclude</code>排除自动重载文件。</li><li>仅监视<code>cli.resourcesDir</code>以避免许多不必要的重载。</li></ul><h3><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="core-bundler-1"></a>Core: Bundler<a class="hash-link" href="#core-bundler-1" title="Direct link to heading">#</a></h3><ul><li>添加新的<code>--copy-storage</code>标志，以自动将存储数据复制到应用程序包。</li></ul><h2><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="v801"></a>v8.0.1<a class="hash-link" href="#v801" title="Direct link to heading">#</a></h2><h3><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="core-bundler-2"></a>Core: Bundler<a class="hash-link" href="#core-bundler-2" title="Direct link to heading">#</a></h3><ul><li>在打包过程中使<code>cli.extensionsDir</code>可选。</li></ul><h3><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="bugfixes-1"></a>Bugfixes<a class="hash-link" href="#bugfixes-1" title="Direct link to heading">#</a></h3><ul><li>修复了websocket错误日志中的问题。</li></ul><h2><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="v800"></a>v8.0.0<a class="hash-link" href="#v800" title="Direct link to heading">#</a></h2><h3><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="core-bundler-3"></a>Core: Bundler<a class="hash-link" href="#core-bundler-3" title="Direct link to heading">#</a></h3><ul><li>将扩展复制到应用程序包中。</li><li>将<code>res.neu</code>重命名为<code>resources.neu</code>。</li></ul><h3><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="core-runner-5"></a>Core: Runner<a class="hash-link" href="#core-runner-5" title="Direct link to heading">#</a></h3><ul><li>使用websocket连接自动重新加载应用程序。</li></ul><h2><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="v710"></a>v7.1.0<a class="hash-link" href="#v710" title="Direct link to heading">#</a></h2><h3><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="core-downloader-1"></a>Core: Downloader<a class="hash-link" href="#core-downloader-1" title="Direct link to heading">#</a></h3><ul><li>从配置中使用服务器/客户端版本</li></ul><h3><a aria-hidden="true" tabindex="-1" class="anchor enhancedAnchor_2LWZ" id="neu-version"></a><code>neu version</code><a class="hash-link" href="#neu-version" title="Direct link to heading">#</a></h3><ul><li>移除了全局Neutralino版本详细信息</li></ul></div></article><div class="margin-vert--xl"><div class="row"><div class="col"><a href="https://github.com/neutralinojs/neutralinojs.github.io/edit/main/docs/release-notes/client-library.md" target="_blank" rel="noreferrer noopener"><svg fill="currentColor" height="1.2em" width="1.2em" preserveAspectRatio="xMidYMid meet" role="img" viewBox="0 0 40 40" class="iconEdit_2_ui" aria-label="Edit page"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div></div></div><div class="margin-vert--lg"><nav class="pagination-nav" aria-label="Docs pages navigation"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/zh-cn.neutralinojs.github.io/docs/release-notes/cli"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« 命令行</div></a></div><div class="pagination-nav__item pagination-nav__item--next"></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_1nbE thin-scrollbar"><div><div data-ea-publisher="neutralino" data-ea-type="image" id="neutralino-docs"></div></div><ul class="table-of-contents table-of-contents__left-border"><li><a href="#unreleased" class="table-of-contents__link">Unreleased</a></li><li><a href="#v1100" class="table-of-contents__link">v11.0.0</a><ul><li><a href="#core-runner" class="table-of-contents__link">Core: Runner</a></li><li><a href="#bugfixesimprovements" class="table-of-contents__link">Bugfixes/improvements</a></li></ul></li><li><a href="#v1011" class="table-of-contents__link">v10.1.1</a><ul><li><a href="#bugfixesimprovements-1" class="table-of-contents__link">Bugfixes/improvements</a></li></ul></li><li><a href="#v1010" class="table-of-contents__link">v10.1.0</a><ul><li><a href="#bugfixesimprovements-2" class="table-of-contents__link">Bugfixes/improvements</a></li></ul></li><li><a href="#v1000" class="table-of-contents__link">v10.0.0</a><ul><li><a href="#core-frontend-library-based-development" class="table-of-contents__link">Core: frontend-library-based development</a></li></ul></li><li><a href="#v980" class="table-of-contents__link">v9.8.0</a><ul><li><a href="#core-downloader" class="table-of-contents__link">Core: Downloader</a></li></ul></li><li><a href="#v970" class="table-of-contents__link">v9.7.0</a><ul><li><a href="#core-downloaderbundler" class="table-of-contents__link">Core: Downloader/bundler</a></li></ul></li><li><a href="#v961" class="table-of-contents__link">v9.6.1</a><ul><li><a href="#bugfixesimprovements-3" class="table-of-contents__link">Bugfixes/Improvements</a></li></ul></li><li><a href="#v960" class="table-of-contents__link">v9.6.0</a><ul><li><a href="#core-bundler" class="table-of-contents__link">Core: Bundler</a></li></ul></li><li><a href="#v951" class="table-of-contents__link">v9.5.1</a><ul><li><a href="#bugfixesimprovements-4" class="table-of-contents__link">Bugfixes/Improvements</a></li></ul></li><li><a href="#v950" class="table-of-contents__link">v9.5.0</a><ul><li><a href="#devops" class="table-of-contents__link">DevOps</a></li></ul></li><li><a href="#v940" class="table-of-contents__link">v9.4.0</a><ul><li><a href="#devops-new-test-suite" class="table-of-contents__link">DevOps: new test suite</a></li><li><a href="#bugfixesimprovements-5" class="table-of-contents__link">Bugfixes/Improvements</a></li></ul></li><li><a href="#v931" class="table-of-contents__link">v9.3.1</a><ul><li><a href="#core-plugins" class="table-of-contents__link">Core: Plugins</a></li><li><a href="#core-downloaderbuilder" class="table-of-contents__link">Core: downloader/builder</a></li></ul></li><li><a href="#v930" class="table-of-contents__link">v9.3.0</a><ul><li><a href="#general" class="table-of-contents__link">General</a></li><li><a href="#bugfixesimprovements-6" class="table-of-contents__link">Bugfixes/improvements</a></li><li><a href="#devops-1" class="table-of-contents__link">DevOps</a></li></ul></li><li><a href="#v920" class="table-of-contents__link">v9.2.0</a><ul><li><a href="#general-1" class="table-of-contents__link">General</a></li><li><a href="#core-runner-1" class="table-of-contents__link">Core: Runner</a></li></ul></li><li><a href="#v912" class="table-of-contents__link">v9.1.2</a><ul><li><a href="#core-runner-2" class="table-of-contents__link">Core: Runner</a></li></ul></li><li><a href="#v911" class="table-of-contents__link">v9.1.1</a><ul><li><a href="#bugfixes" class="table-of-contents__link">Bugfixes</a></li></ul></li><li><a href="#v910" class="table-of-contents__link">v9.1.0</a><ul><li><a href="#core-runner-3" class="table-of-contents__link">Core: Runner</a></li></ul></li><li><a href="#v900" class="table-of-contents__link">v9.0.0</a><ul><li><a href="#core-creator" class="table-of-contents__link">Core: Creator</a></li><li><a href="#core-runner-4" class="table-of-contents__link">Core: Runner</a></li><li><a href="#bugfixes-and-improvements" class="table-of-contents__link">Bugfixes and improvements</a></li></ul></li><li><a href="#v810" class="table-of-contents__link">v8.1.0</a><ul><li><a href="#core-file-watcher" class="table-of-contents__link">Core: File watcher</a></li><li><a href="#core-bundler-1" class="table-of-contents__link">Core: Bundler</a></li></ul></li><li><a href="#v801" class="table-of-contents__link">v8.0.1</a><ul><li><a href="#core-bundler-2" class="table-of-contents__link">Core: Bundler</a></li><li><a href="#bugfixes-1" class="table-of-contents__link">Bugfixes</a></li></ul></li><li><a href="#v800" class="table-of-contents__link">v8.0.0</a><ul><li><a href="#core-bundler-3" class="table-of-contents__link">Core: Bundler</a></li><li><a href="#core-runner-5" class="table-of-contents__link">Core: Runner</a></li></ul></li><li><a href="#v710" class="table-of-contents__link">v7.1.0</a><ul><li><a href="#core-downloader-1" class="table-of-contents__link">Core: Downloader</a></li><li><a href="#neu-version" class="table-of-contents__link"><code>neu version</code></a></li></ul></li></ul></div></div></div></div></main></div></div><footer class="footer footer--dark"><div class="container"><div class="row footer__links"><div class="col footer__col"><h4 class="footer__title">文档</h4><ul class="footer__items"><li class="footer__item"><a class="footer__link-item" href="/zh-cn.neutralinojs.github.io/docs/">入门</a></li><li class="footer__item"><a class="footer__link-item" href="/zh-cn.neutralinojs.github.io/docs/api/overview">API参考</a></li><li class="footer__item"><a class="footer__link-item" href="/zh-cn.neutralinojs.github.io/docs/cli/neu-cli">CLI</a></li><li class="footer__item"><a class="footer__link-item" href="/zh-cn.neutralinojs.github.io/docs/configuration/modes">模式</a></li><li class="footer__item"><a class="footer__link-item" href="/zh-cn.neutralinojs.github.io/docs/contributing/framework-developer-guide">贡献</a></li></ul></div><div class="col footer__col"><h4 class="footer__title">社区</h4><ul class="footer__items"><li class="footer__item"><a href="https://github.com/neutralinojs" target="_blank" rel="noopener noreferrer" class="footer__link-item">GitHub</a></li><li class="footer__item"><a href="https://twitter.com/neutralinojs" target="_blank" rel="noopener noreferrer" class="footer__link-item">Twitter</a></li><li class="footer__item"><a href="https://stackoverflow.com/questions/tagged/neutralinojs" target="_blank" rel="noopener noreferrer" class="footer__link-item">Stack Overflow</a></li><li class="footer__item"><a href="https://medium.com/neutralinojs" target="_blank" rel="noopener noreferrer" class="footer__link-item">Medium</a></li><li class="footer__item"><a href="https://www.youtube.com/watch?v=txDlNNsgSh8&amp;list=PLvTbqpiPhQRb2xNQlwMs0uVV0IN8N-pKj&amp;ab_channel=CodeZri" target="_blank" rel="noopener noreferrer" class="footer__link-item">YouTube</a></li><li class="footer__item"><a href="https://join.slack.com/t/neutralinojs/shared_invite/zt-b7mbivj5-pKpO6U5drmeT68vKD_pc6w" target="_blank" rel="noopener noreferrer" class="footer__link-item">Slack</a></li><li class="footer__item"><a href="https://discord.gg/cybpp4guTJ" target="_blank" rel="noopener noreferrer" class="footer__link-item">Discord</a></li><li class="footer__item"><a href="https://www.reddit.com/r/neutralinojs/" target="_blank" rel="noopener noreferrer" class="footer__link-item">Reddit</a></li></ul></div><div class="col footer__col"><h4 class="footer__title">更多</h4><ul class="footer__items"><li class="footer__item"><a href="https://github.com/neutralinojs/neutralinojs" target="_blank" rel="noopener noreferrer" class="footer__link-item">GitHub</a></li><li class="footer__item"><a href="https://www.patreon.com/shalithasuranga" target="_blank" rel="noopener noreferrer" class="footer__link-item">Patreon</a></li><li class="footer__item"><a class="footer__link-item" href="/zh-cn.neutralinojs.github.io/privacy-policy">隐私政策</a></li><li class="footer__item"><a href="https://codezri.org/blog/" target="_blank" rel="noopener noreferrer" class="footer__link-item">博客</a></li></ul></div></div><div class="footer__bottom text--center"><div class="footer__copyright">Copyright © 2024 Neutralinojs | innovation by <a href="https://codezri.org/">CodeZri.org</a></div></div></div></footer></div>
<script src="/zh-cn.neutralinojs.github.io/assets/js/styles.c25d7c9f.js"></script>
<script src="/zh-cn.neutralinojs.github.io/assets/js/runtime~main.da1bdab8.js"></script>
<script src="/zh-cn.neutralinojs.github.io/assets/js/main.22927eab.js"></script>
<script src="/zh-cn.neutralinojs.github.io/assets/js/1.a80d899d.js"></script>
<script src="/zh-cn.neutralinojs.github.io/assets/js/2.818fc9a7.js"></script>
<script src="/zh-cn.neutralinojs.github.io/assets/js/49.8e895b96.js"></script>
<script src="/zh-cn.neutralinojs.github.io/assets/js/50.816652b0.js"></script>
<script src="/zh-cn.neutralinojs.github.io/assets/js/935f2afb.a67ede05.js"></script>
<script src="/zh-cn.neutralinojs.github.io/assets/js/17896441.74f92a0c.js"></script>
<script src="/zh-cn.neutralinojs.github.io/assets/js/7a386ae8.b1f43bbb.js"></script>
</body>
</html>